package com.mvp.lt.airlineview.data.entity;

import android.os.Parcel;
import android.os.Parcelable;

import java.util.List;

/**
 * @ClassName: MAttentionBean
 * @Description: java类作用描述
 * @Author: 刘涛
 * @Date: 2019/4/12 0012 上午 11:40
 */

public class MAttentionBean implements Parcelable {


    /**
     * total : 6
     * per_page : 10
     * current_page : 1
     * last_page : 1
     * data : [{"attention_id":4,"user_id":50,"attention_user_id":49,"is_delete":0,"create_time":"2019-04-02 16:22:14","store_info":{"icon":"","user_id":49,"name":"长沙红网科技","address":"湖南省长沙市芙蓉区文艺路街道"}},{"attention_id":10,"user_id":50,"attention_user_id":46,"is_delete":0,"create_time":"2019-04-04 15:10:26","store_info":{"icon":"","user_id":46,"name":"黑豆科技公司","address":"湖南省长沙市芙蓉区东屯渡街道"}},{"attention_id":12,"user_id":50,"attention_user_id":24,"is_delete":0,"create_time":"2019-04-12 15:05:01","store_info":{"icon":"20190319\\390b08867273af952f5b6a833a7b8968.png","user_id":24,"name":"测试商户姓名","address":"TEST"}},{"attention_id":13,"user_id":50,"attention_user_id":3,"is_delete":0,"create_time":"2019-04-12 15:15:22","store_info":{"icon":"","user_id":3,"name":"湖南黑豆科技","address":"人民东路"}},{"attention_id":14,"user_id":50,"attention_user_id":50,"is_delete":0,"create_time":"2019-04-12 15:15:25","store_info":{"icon":"/storage/emulated/0/tencent/MicroMsg/WeiXin/mmexport1554217834270.jpg","user_id":50,"name":"中南海有限公司","address":"湖南省长沙市"}},{"attention_id":17,"user_id":50,"attention_user_id":73,"is_delete":0,"create_time":"2019-04-13 15:05:51","store_info":""}]
     */

    private int total;
    private int per_page;
    private int current_page;
    private int last_page;
    private List<DataBean> data;

    public MAttentionBean() {
    }

    protected MAttentionBean(Parcel in) {
        total = in.readInt();
        per_page = in.readInt();
        current_page = in.readInt();
        last_page = in.readInt();
    }

    public static final Creator<MAttentionBean> CREATOR = new Creator<MAttentionBean>() {
        @Override
        public MAttentionBean createFromParcel(Parcel in) {
            return new MAttentionBean(in);
        }

        @Override
        public MAttentionBean[] newArray(int size) {
            return new MAttentionBean[size];
        }
    };

    public int getTotal() {
        return total;
    }

    public void setTotal(int total) {
        this.total = total;
    }

    public int getPer_page() {
        return per_page;
    }

    public void setPer_page(int per_page) {
        this.per_page = per_page;
    }

    public int getCurrent_page() {
        return current_page;
    }

    public void setCurrent_page(int current_page) {
        this.current_page = current_page;
    }

    public int getLast_page() {
        return last_page;
    }

    public void setLast_page(int last_page) {
        this.last_page = last_page;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    @Override
    public int describeContents() {
        return 0;
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(total);
        dest.writeInt(per_page);
        dest.writeInt(current_page);
        dest.writeInt(last_page);
    }

    public static class DataBean implements Parcelable {
        /**
         * attention_id : 4
         * user_id : 50
         * attention_user_id : 49
         * is_delete : 0
         * create_time : 2019-04-02 16:22:14
         * store_info : {"icon":"","user_id":49,"name":"长沙红网科技","address":"湖南省长沙市芙蓉区文艺路街道"}
         */

        private int attention_id;
        private int user_id;
        private int attention_user_id;
        private int is_delete;
        private String create_time;
        private StoreInfoBean store_info;

        public DataBean() {
        }

        protected DataBean(Parcel in) {
            attention_id = in.readInt();
            user_id = in.readInt();
            attention_user_id = in.readInt();
            is_delete = in.readInt();
            create_time = in.readString();
            store_info = in.readParcelable(StoreInfoBean.class.getClassLoader());
        }

        public static final Creator<DataBean> CREATOR = new Creator<DataBean>() {
            @Override
            public DataBean createFromParcel(Parcel in) {
                return new DataBean(in);
            }

            @Override
            public DataBean[] newArray(int size) {
                return new DataBean[size];
            }
        };

        public int getAttention_id() {
            return attention_id;
        }

        public void setAttention_id(int attention_id) {
            this.attention_id = attention_id;
        }

        public int getUser_id() {
            return user_id;
        }

        public void setUser_id(int user_id) {
            this.user_id = user_id;
        }

        public int getAttention_user_id() {
            return attention_user_id;
        }

        public void setAttention_user_id(int attention_user_id) {
            this.attention_user_id = attention_user_id;
        }

        public int getIs_delete() {
            return is_delete;
        }

        public void setIs_delete(int is_delete) {
            this.is_delete = is_delete;
        }

        public String getCreate_time() {
            return create_time;
        }

        public void setCreate_time(String create_time) {
            this.create_time = create_time;
        }

        public StoreInfoBean getStore_info() {
            return store_info;
        }

        public void setStore_info(StoreInfoBean store_info) {
            this.store_info = store_info;
        }

        @Override
        public int describeContents() {
            return 0;
        }

        @Override
        public void writeToParcel(Parcel dest, int flags) {
            dest.writeInt(attention_id);
            dest.writeInt(user_id);
            dest.writeInt(attention_user_id);
            dest.writeInt(is_delete);
            dest.writeString(create_time);
            dest.writeParcelable(store_info, flags);
        }

        public static class StoreInfoBean implements Parcelable{
            /**
             * icon :
             * user_id : 49
             * name : 长沙红网科技
             * address : 湖南省长沙市芙蓉区文艺路街道
             */

            private String icon;
            private int user_id;
            private String name;
            private String address;

            public StoreInfoBean() {
            }

            protected StoreInfoBean(Parcel in) {
                icon = in.readString();
                user_id = in.readInt();
                name = in.readString();
                address = in.readString();
            }

            public static final Creator<StoreInfoBean> CREATOR = new Creator<StoreInfoBean>() {
                @Override
                public StoreInfoBean createFromParcel(Parcel in) {
                    return new StoreInfoBean(in);
                }

                @Override
                public StoreInfoBean[] newArray(int size) {
                    return new StoreInfoBean[size];
                }
            };

            public String getIcon() {
                return icon;
            }

            public void setIcon(String icon) {
                this.icon = icon;
            }

            public int getUser_id() {
                return user_id;
            }

            public void setUser_id(int user_id) {
                this.user_id = user_id;
            }

            public String getName() {
                return name;
            }

            public void setName(String name) {
                this.name = name;
            }

            public String getAddress() {
                return address;
            }

            public void setAddress(String address) {
                this.address = address;
            }

            @Override
            public int describeContents() {
                return 0;
            }

            @Override
            public void writeToParcel(Parcel dest, int flags) {
                dest.writeString(icon);
                dest.writeInt(user_id);
                dest.writeString(name);
                dest.writeString(address);
            }
        }
    }
}
